Video synthesis method, apparatus, computer device and readable storage medium

ABSTRACT

The present disclosure provides a video synthesis method, apparatus, computer device and computer-readable storage medium, which the method includes: acquiring a first video; capturing second video data photographed in real time; performing first encoding on the second video data to obtain an encoded video; synthesizing the first video and the encoded video to obtain synthesized video data; and performing second encoding on the synthesized video data to obtain a target video. By means of the method, there is less loss in the obtained target video frames and a relatively high definition of the video frames.

CROSS-REFERENCE TO RELATED APPLICATION

The present disclosure claims the benefit of a Chinese patentapplication No. 201811326170.3 filed on Nov. 8, 2018 in the StateIntellectual Property Office of China, the disclosure of which isincorporated by reference herein in its entirety.

Technical Field

The disclosure relates to the field of computer technologies, inparticular to a video synthesis method, apparatus, computer device andreadable storage medium.

Background Art

With the development of smart terminal technologies, people often usemobile phones, tablets and other smart terminals to photograph videos,in order to record their work and life moments. Generally, memories ofsmartphones, tablets and other smart terminals are limited, but with theincreasing number of videos photographed, it is inevitable that desiredvideos cannot be saved due to insufficient memories of the smartterminals, so it is necessary to synthesize desired videos photographedand existing videos desired to be saved in order to save memories ofsmart terminals.

In the prior art, a video encoder is used to synthesize a photographedvideo and an existing video that is expected to be saved. Usually, acompression algorithm adopted by the video encoder has a highcompression ratio. However, under the condition of ensuring a certainsize of the target synthesized video data, the high compression ratiowill lead to more loss of video and lower definition of video.

SUMMARY OF THE INVENTION

For this reason, it is necessary to provide a video synthesis method,apparatus, computer device, and computer-readable storage medium withrespect to the technical problems described above.

In a first aspect, an embodiment of the present disclosure provides avideo synthesis method, including:

acquiring a first video;

capturing second video data photographed in real time;

performing first encoding on the second video data to obtain an encodedvideo;

synthesizing the first video and the encoded video to obtain synthesizedvideo data; and

performing second encoding on the synthesized video data to obtain atarget video.

According to one embodiment of the present disclosure, the step ofperforming first encoding on the second video data to obtain an encodedvideo comprises: performing first encoding on the second video data byadopting a first encoding mode to obtain the encoded video; and the stepof performing second encoding on the synthesized video data to obtain atarget video includes: performing second encoding on the synthesizedvideo data by adopting a second encoding mode to obtain the targetvideo; wherein the first encoding mode is different from the secondencoding mode.

In one embodiment, the step of performing second encoding on thesynthesized video data to obtain a target video comprises includes: thecode rate of the second encoding is less than that of the firstencoding.

In one embodiment, the resolution of the second encoding is less than orequal to that the resolution of the first encoding.

In one embodiment, the step of performing first encoding on the secondvideo data by adopting a first encoding mode to obtain an encoded videoincludes: encoding the second video data in real time by adopting afirst entropy encoding mode to obtain the encoded video.

In one embodiment, the step of performing second encoding on thesynthesized video data by adopting a second encoding mode to obtain thetarget video includes: encoding the synthesized video data in non-realtime by adopting a second entropy encoding mode to obtain a targetsynthesized video.

In one embodiment, the duration of the second video is equal to that theduration of the first video.

In a second aspect, an embodiment of the present disclosure provides avideo synthesis apparatus, including:

an acquisition module configured to acquire a first video;

a capturing module configured to capture second video data photographedin real time;

a first encoding module configured to perform first encoding on thesecond video data to obtain an encoded video;

a video synthesis module configured to synthesize the first video andthe second video to obtain synthesized video data; and

a second encoding module configured to perform second encoding on thesynthesized video data to obtain a target video.

In a third aspect, an embodiment of the present disclosure provides acomputer device, including a memory and a processor, wherein the memorystores a computer program that is configured when executed by theprocessor to implement the steps of the method in the first aspect,including: acquiring a first video;

capturing second video data photographed in real time;

performing first encoding on the second video data to obtain an encodedvideo;

synthesizing the first video and the encoded video to obtain synthesizedvideo data; and

performing second encoding on the synthesized video data to obtain atarget video.

In a fourth aspect, an embodiment of the present disclosure of thepresent disclosure provides a computer-readable storage medium whereinthe computer-readable storage medium has a computer program storagethereon and is configured to implement, when executed by a processor,the steps of the method in the first aspect, including:

acquiring a first video;

capturing second video data photographed in real time;

performing first encoding on the second video data to obtain an encodedvideo;

synthesizing the first video and the encoded video to obtain synthesizedvideo data; and

performing second encoding on the synthesized video data to obtain atarget video.

The video data synthesis method, apparatus, computer device andcomputer-readable storage medium provided in these embodiments mayresult less loss in target video frames and relatively high definitionof video frames.

THE DESCRIPTION OF DRAWINGS

FIG. 1 is a view illustrating an application scenario of a videosynthesis system according to an embodiment of the present disclosure;

FIG. 2 is a flowchart illustrating a video synthesis method according toan embodiment of the present disclosure;

FIG. 3 is a schematic diagram illustrating a user interface of anapplication program according to an embodiment of the presentdisclosure;

FIG. 4 is a flowchart illustrating a video synthesis method according toanother embodiment of the present disclosure;

FIG. 5 is a schematic structural diagram illustrating a video synthesisapparatus according to an embodiment of the present disclosure; and

FIG. 6 is a schematic structural diagram illustrating a computer deviceaccording to an embodiment of the present disclosure.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

In order to make the purposes, technical solutions and advantages of theembodiments of the present disclosure clearer, the technical solutionsin embodiments of the present disclosure will be described clearly andcompletely with reference to the drawings for the embodiments of thepresent disclosure. Obviously, the described embodiments are part ofpossible embodiments of the present disclosure, not all of them. Basedon the embodiments in the present disclosure, all other embodimentsobtained by those skilled in the art without creative labor fall in theprotection scope of the present disclosure.

The video synthesis method provided in the embodiment of the presentdisclosure may be applied to the application scenario of the videosynthesis system as shown in FIG. 1. The computer device 110 can be anelectronic device with video image acquisition and processing functions,such as a smart phone, a tablet, a laptop, a desktop computer or apersonal digital assistant, and the present embodiment does not limitthe specific form of the computer device 110. It should be noted thatthe computer device 110 can support the running of various applications,such as the application 111. Optionally, the application 111 can obtainvideo materials of the video to be synthesized through an imageacquisition apparatus of the computer device 110, synthesize the videodata materials to obtain a corresponding video, and output the obtainedvideo through an interface of the application 111. Optionally, theapplication 111 may be a material (e.g., video and image) processingapplication, or a browser application. In embodiments of the presentdisclosure, the specific form of the application 111 is not limited.

It should be noted that the main body of the video synthesis methodprovided by embodiments of the present disclosure can be a videosynthesis apparatus, which can be implemented as a part or all ofcomputer device by means of software, hardware or a combination ofsoftware and hardware.

In order to make the purposes, technical solutions and advantages of thepresent disclosure clearer, the technical solutions in the embodimentsof the present disclosure will be further explained in detail throughthe following embodiments in conjunction with the drawings. It should beunderstood that the specific embodiments described herein are only usedto explain the disclosure, and are not used to limit the presentdisclosure.

FIG. 2 is a flowchart illustrating a video synthesis method according toan embodiment of the present disclosure. The embodiment of the presentdisclosure relates to a specific process in which the computer deviceencodes the first synthesized video data to obtain the secondsynthesized video. As shown in FIG. 2, the video synthesis methodincludes:

S101: acquiring a first video.

In an embodiment of the present disclosure, the first video may be avideo stored locally by a computer device, which photographs ordownloads a saved local video in advance by the computer device, or avideo stored in cloud, which is not limited in the embodiment of thepresent disclosure.

It should be noted that the computer device can acquire the first videoaccording to a received click instruction, and the acquired first videocan be any local videos, which is not limited in this embodiment.

S102. capturing second video data photographed in real time.

In an embodiment of the present disclosure, the computer device canphotograph the second video data in real time according to a receivedphotographing command. Optionally, the above photographing command canbe generated by a user pressing and holding a photographing button (suchas a hardware key, virtual key or interactive interface) on the computerdevice. It should be noted that an interface after the computer deviceopens the application can be as shown in FIG. 3, and the application canbe software with a split-screen function. As shown in FIG. 3, thelocations of local video playing area and photographed video playingarea are preset by the application.

For example, as shown in FIG. 3, the user opens the application program,clicks the local video playing area on the right side, and can select alocally saved first video. Then the user may press and hold thephotographing button to capture photographed video in the left videoplaying area in real-time, and when the duration of photographing videois equal to a first video duration, the photographing will automaticallyend. Alternatively, when the duration of photographing video is lessthan the first video duration and the photographing button is released,the photographing for a first small video clip is finished, and thephotograph for a second small video clip would be continued until thephotographing button is pressed again, which the entire photograph wouldautomatically end until the sum of durations of the last small videoclip and all previous small video clips is equal to the duration of thefirst video.

Optionally, the duration of the second video is equal to that of thefirst video.

Optionally, in the process of photographing the second video, the usercan press and hold the photographing button on the computer device onceuntil the duration of the acquired second video is equal to the durationof the first video, which the photographing automatically ends.Alternatively, the user can also press and hold the photographing buttonon the computer device many times to obtain the second video dataphotographed in real time, wherein the sum of the duration of pressingand holding the photographing button is equal to the duration of thefirst video. For example, if the duration of the first video is 6minutes and the user obtains the second video data photographed in realtime by pressing and holding the photographing button three times,whereas the duration of pressing and holding the photographing buttonfor the first time is 1 minute and the duration of pressing and holdingthe photographing button for the second time after the firstphotographing is 2 minutes, then the photographing would automaticallyend until the duration of pressing and holding the photographing buttonfor the third time is 3 minutes. Optionally, the resolution and coderate of the second video data can be determined according to the initialvalues of the software corresponding to photographing the second videodata on the computer device, and after the software for photographingthe second video data is determined, the resolution and code rate of thesecond video data may be determined accordingly.

S103: performing first encoding on the second video data to obtain anencoded video.

Specifically, in the process of photographing the second video data inreal time, the computer device performs first encoding on the secondvideo data photographed in real time to obtain an encoded video.

It should be noted that the above-mentioned first encoding can becharacterized as a specific compression technology, which is a way ofconverting a file in one video format into another video format.

S104: synthesizing the first video and the encoded video to obtainsynthesized video data.

It should be noted that after the encoded video is obtained, thecomputer device can automatically synthesize the first video and theencoded video. In the process of generating the synthesized video data,the computer device can display the words “loading data” on theinterface of the application and display a loading progress, which canbe characterized as the percentage of synthesizing video data.

S105: performing second encoding on the synthesized video data to obtaina target video.

In an embodiment of the present disclosure, the computer device canperform second encoding on the synthesized video data to obtain a targetvideo. It should be noted that the duration of the target video may beequal to the duration of the synthesized video. Optionally, the abovesecond encoding can be characterized as a specific compressiontechnology, which is a way of converting a file in a certain videoformat into a file in another video format. Optionally, the resolutionand code rate of the target video can be customized according to userrequirements.

It should be noted that, after obtaining the synthesized video data, thecomputer device can automatically perform second encoding on thesynthesized video data. In this case, after the second encoding, thecomputer device can play the encoded target video.

According to the video synthesis method provided in the embodiment, acomputer device obtains a video with less loss in target video framesand relatively high definition of video frames.

FIG. 4 is a flowchart illustrating a video synthesis method provided byanother embodiment, and the video synthesis method specifically includesthe following steps: steps S101, S102, S1031, S104 and S1051, whereinsteps S101, S102 and S104 are the same as the above, which will not bedescribed herein again.

S1031: performing first encoding on the second video data by adopting afirst encoding mode to obtain the encoded video.

Specifically, in the process of photographing the second video data inreal time, the computer device can adopt the first encoding mode toperform first lossy encoding on the second video data photographed inreal time to obtain the encoded video.

It should be noted that the definition of the edited video obtained bythe first encoding can be consistent with the definition of the secondvideo photographed in real time.

S1051: performing second encoding on the synthesized video data byadopting a second encoding mode to obtain the target encoded video.

Wherein the first encoding mode is different from the second encodingmode.

Optionally, the code rate of the second encoding is less than that ofthe first encoding, and the resolution of the second encoding is lessthan or equal to that of the first encoding.

In an embodiment of the present disclosure, the computer device canperform secondary lossy encoding on the synthesized video data byadopting a second encoding mode to obtain the target video, and the coderate of the second encoding is less than that of the first encoding, andthe resolution of the second encoding is less than or equal to that ofthe first encoding.

According to an embodiment of the present disclosure, the resolution andcode rate of the second encoding are equal to those of the target videorespectively.

Through the video synthesis method provided in the embodiment, computerdevice can adopt the first encoding mode to perform first lossy encodingon the second video data, which may make the resolution of the encodedvideo equal to that of the second video photographed in real time asmuch as possible through the first encoding, and adopt the secondencoding mode to perform second encoding on the encoded video obtainedafter the first encoding to obtain the target encoded video, wherein thecode rate of the second encoding is less than that of the firstencoding, and the resolution of the second encoding is less than orequal to the resolution of the first encoding. This method can preventloss of the target encoded video frames and ensure high definition ofthe target encoded video frames in a case that the obtained targetencoded video file is small.

In one of the embodiments, the step of performing first encoding on thesecond video data by adopting a first encoding mode to obtain an encodedvideo includes: encoding the second video data in real time by adoptinga first entropy encoding mode to obtain the encoded video.

In an embodiment of the present disclosure, the computer device canencode the second video data photographed in real time by adopting thefirst entropy encoding mode to obtain the encoded video. Optionally, theabove entropy encoding mode can be characterized as encoding withoutlosing any information according to entropy principle. Optionally, thefirst entropy encoding mode can be Shannon encoding, Huffman encoding,arithmetic encoding, Columbus encoding, etc., which is not limited inthe embodiment.

It should be noted that the above-mentioned real-time encoding can becharacterized by the fact that the total number of frames of coded videois unchanged and the encoding speed is fixed.

According to the video synthesis method provided in the embodiment, thecomputer device can encode the second video data in real time byadopting the first entropy encoding mode, so as to prevent loss of videoframes and ensure that the obtained coded video has high definition,when the encoding rate is large.

In the embodiment of present disclosure, the step of performing secondencoding on the synthesized video data by adopting a second encodingmode to obtain the target video incudes: encoding the synthesized videodata in non-real time by adopting a second entropy encoding mode toobtain the target video.

In an embodiment of the present disclosure, the computer device canencode the synthesized video data obtained by the first encoding innon-real time by adopting the second entropy encoding mode to obtain thetarget video. Optionally, the second entropy encoding mode can beShannon encoding, Huffman encoding, arithmetic encoding, Columbusencoding, etc., which is not limited in this embodiment. Optionally, theabove-mentioned non-real-time encoding can be characterized by the factthat the total number of frames of encoded video is unchanged, theencoding speed is not limited, and only the total duration of encodedvideo data needs to be considered. In addition, the encoding speed ofnon-real-time encoding may be lower than that of real-time encoding.

In the video synthesis method provided in the embodiment, the computerdevice can encode the synthesized video data in non-real time by usingthe second entropy encoding mode, thereby ensuring less loss of framesand high definition of an obtained target video when the video encodingrate is small.

It should be understood that although the steps in the flowcharts ofFIGS. 2 to 4 are displayed in sequence as indicated by arrows, thesesteps are not necessarily executed in sequence as indicated by arrows.Unless explicitly stated herein, the execution of these steps is notstrictly limited in order, and these steps can be executed in otherorders. Furthermore, at least some of the steps in FIGS. 2 to 4 mayinclude a plurality of sub-steps or stages, which may not necessarily becompleted at the same time, but may be executed at different times, andthe execution sequence of these sub-steps or stages may not necessarilybe carried out sequentially, but may be executed alternately oralternatively with other steps or at least a part of sub-steps or stagesof other steps.

For the specific description of the video synthesis apparatus, pleaserefer to the description of the video synthesis method above, and itwill not be described in detail here. Each module in the video synthesisapparatus of the above-mentioned computer device can be realized inwhole or in part by software, hardware and their combination. The abovemodules can be embedded in or independent of the processor in thecomputer device in hardware form, and can also be stored in the memoryin the computer device in software form, so that the processor can calland execute the operations corresponding to the above modules.

FIG. 5 is a structural diagram illustrating a video synthesis apparatusaccording to an embodiment. As shown in FIG. 5, the device may includean acquisition module 11, a capturing module 12, a first encoding module13, a video synthesis module 14 and a second encoding module 15.

In an embodiment of the present disclosure, the acquisition module 11may obtain a first video;

the capturing module 12 may capture second video data photographed inreal time;

the first encoding module 13 may perform first encoding on the secondvideo data to obtain an encoded video;

the video synthesis module 14 may synthesize the first video and theencoded video to obtain synthesized video data;

the second encoding module 15 may perform second encoding on thesynthesized video data to obtain a target video.

Optionally, the duration of the second video is equal to that of thefirst video.

The video synthesis apparatus provided in this embodiment can executethe above method embodiments, and its implementation principle andtechnical effect are similar, which would not be repeated herein.

Another embodiment of the present disclosure provides a video synthesisapparatus. Unlike the video synthesis apparatus shown in FIG. 5, thefirst encoding mode 13 may perform first encoding on the second videodata by adopting a first encoding mode to obtain an encoded video; thesecond encoding module 15 may perform second encoding on the synthesizedvideo data by adopting a second encoding mode to obtain the targetvideo. Wherein the code rate of the second encoding is less than that ofthe first encoding. Optionally, the resolution of the second encoding isless than or equal to the resolution of the first encoding.

The video synthesis apparatus provided in this embodiment can executethe above method embodiments, and its implementation principle andtechnical effect are similar, which would not be repeated herein.

Further referring to FIG. 5, on the basis of the embodiment shown inFIG. 5, the first encoding module 13 may further encode the second videodata in real time by adopting a first entropy encoding mode to obtainthe synthesized video data.

The video synthesis apparatus provided in this embodiment can executethe above method embodiment, and its implementation principle andtechnical effect are similar, which would not be repeated herein.

In an embodiment of the present disclosure, the second encoding module15 may perform non-real-time encoding on the synthesized video data byusing the second entropy encoding mode to obtain the target video.

The video synthesis apparatus provided in this embodiment can executethe above method embodiment, and its implementation principle andtechnical effect are similar, which would not be repeated herein.

In one embodiment, a computer device is provided, and its internalstructure diagram can be shown in FIG. 6. The computer device includes aprocessor, a memory, a network interface, a display screen and an inputdevice which are connected through a system bus. Wherein the processorof the computer device is used for providing computing and controlcapabilities. The memory of the computer device includes a nonvolatilestorage medium and an internal memory. The nonvolatile storage mediumstores an operating system and computer programs. The internal memoryprovides an environment for the operation of the operating system andcomputer programs in the nonvolatile storage medium. The networkinterface of the computer device is used to communicate with externalterminals through network connection. The computer program is executedby a processor to realize a video synthesis method of the presentdisclosure. The display screen of the computer device can be a liquidcrystal display screen or an electronic ink display screen, and theinput device of the computer device can be a touch layer covered on thedisplay screen, a key, a trackball or a touch pad arranged on the shellof the computer device, or an external keyboard, touch pad or mouse.

It can be understood by those skilled in the art that the structureshown in FIG. 6 is only a block diagram of some structures related tothe scheme of the present disclosure, and does not constitute alimitation on the computer device to which the solution of the presentdisclosure applies. The specific computer device may include more orfewer components than those shown in the figure, or combine somecomponents, or have different component arrangements.

In an embodiment of the present disclosure, a computer device isprovided, which includes a memory and a processor, wherein a computerprogram is stored in the memory, and the processor implements thefollowing steps when executing the computer program:

acquiring a first video;

capturing second video data photographed in real time;

performing first encoding on the second video data to obtain acompilation video;

synthesizing the first video and the encoded video to obtain synthesizedvideo data; and

performing second encoding on the synthesized video data to obtain atarget video.

In one embodiment, a computer-readable storage medium is provided, onwhich a computer program is stored, and the computer program is executedby a processor to implement the following steps:

acquiring a first video;

capturing second video data photographed in real time;

performing first encoding on the second video data to obtain an encodedvideo;

synthesizing the first video and the encoded video to obtain synthesizedvideo data; and

performing second encoding on the synthesized video data to obtain atarget video.

Those skilled in the art can understand that all or part of the flow ofthe method for realizing the above embodiments can be completed byinstructing related hardware through a computer program, which can bestored in a nonvolatile computer-readable storage medium, and thecomputer program, when being executed, can include the flow of the aboveembodiments. Wherein, any reference to memory, storage, database orother media used in the embodiments provided by the present disclosuremay include nonvolatile and/or volatile memory. The nonvolatile memorymay include read-only memory (ROM), programmable ROM (PROM),electrically programmable ROM (EPROM), electrically erasableprogrammable ROM (EEPROM) or flash memory. The volatile memory mayinclude random access memory (RAM) or external cache memory. By way ofillustration rather than limitation, RAM is available in various forms,such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM),double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronouslink (Synchlink) DRAM (SLDRAM), direct bus-type (Rambus) RAM (DRRAM),direct bus-type dynamic RAM (DRDRAM) memory, and bus dynamic RAM (RDRAM)memory.

The above-mentioned embodiments only express several embodiments of thedisclosure, and their descriptions are specific and detailed, but theycannot be understood as limiting the scope of the patent of thedisclosure. It should be pointed out that for those skilled in the art,without departing from the concept of the present disclosure, severalmodifications and improvements can be made, which belong to theprotection scope of the present disclosure. Therefore, the scope ofprotection of the disclosed patent shall be subject to the appendedclaims.

1. A video synthesis method, comprising: acquiring a first video;capturing second video data photographed in real time; performing firstencoding on the second video data to obtain an encoded video;synthesizing the first video and the encoded video to obtain synthesizedvideo data; and performing second encoding on the synthesized video datato obtain a target video.
 2. The method according to claim 1, whereinperforming first encoding on the second video data to obtain an encodedvideo further comprises: performing first encoding on the second videodata by adopting a first encoding mode to obtain the encoded video; andperforming second encoding on the synthesized video data to obtain thetarget video further comprises: performing second encoding on thesynthesized video data by adopting a second encoding mode to obtain thetarget video; wherein the first encoding mode is different from thesecond encoding mode.
 3. The method according to claim 1, wherein a coderate of the second encoding is less than a code rate of the firstencoding.
 4. The method according to claim 3, wherein a resolution ofthe second encoding is less than or equal to a resolution of the firstencoding.
 5. The method according to claim 2, wherein performing firstencoding on the second video data by adopting a first encoding mode toobtain an encoded video further comprises: encoding the second videodata in real time by adopting a first entropy encoding mode to obtainthe encoded video.
 6. The method according to claim 2, whereinperforming second encoding on the synthesized video data by adopting asecond encoding mode to obtain the target video further comprises:encoding the synthesized video data in non-real time by adopting asecond entropy encoding mode to obtain a target synthesized video. 7.The method according to claim 1, wherein a duration of the second videois equal to a duration of the first video.
 8. (canceled)
 9. A computerdevice comprising: a memory; and a processor, wherein the memory storesa computer program that, when executed by the processor, causes thecomputer device to: acquire a first video; capture second video dataphotographed in real time; perform first encoding on the second videodata to obtain an encoded video; synthesize the first video and theencoded video to obtain synthesized video data; and perform secondencoding on the synthesized video data to obtain a target video.
 10. Acomputer-readable storage medium, wherein the computer-readable storagemedium has a computer program storage thereon and is configured toimplement, when executed by a processor, a video synthesis methodcomprising: acquiring a first video; capturing second video dataphotographed in real time; performing first encoding on the second videodata to obtain an encoded video; synthesizing the first video and theencoded video to obtain synthesized video data; and performing secondencoding on the synthesized video data to obtain a target video.
 11. Thecomputer device according to claim 9, wherein: performing first encodingon the second video data to obtain an encoded video further comprises:performing first encoding on the second video data by adopting a firstencoding mode to obtain the encoded video; and performing secondencoding on the synthesized video data to obtain a target video furthercomprises: performing second encoding on the synthesized video data byadopting a second encoding mode to obtain the target video; and whereinthe first encoding mode is different from the second encoding mode. 12.The computer device according 9, wherein a code rate of the secondencoding is less than a code rate of the first encoding.
 13. Thecomputer device according to claim 11, wherein a resolution of thesecond encoding is less than or equal to a resolution of the firstencoding.
 14. The computer device according to claim 9, whereinperforming first encoding on the second video data by adopting a firstencoding mode to obtain an encoded video further comprises: encoding thesecond video data in real time by adopting a first entropy encoding modeto obtain the encoded video.
 15. The computer device according to claim9, wherein performing second encoding on the synthesized video data byadopting a second encoding mode to obtain the target video comprises:encoding the synthesized video data in non-real time by adopting asecond entropy encoding mode to obtain a target synthesized video. 16.The computer device according to claim 8, wherein a duration of thesecond video is equal to a duration of the first video.